package com.dog.basics.bean.dto.api.mtkj;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 购物车
 * </p>
 *
 * @author wph
 * @since 2020-05-29
 */
@Data
public class ApiBasketAddDto {

    /**
     * 商品ID
     */
    @NotNull(message = "商品ID不能为空")
    @ApiModelProperty(value = "商品ID", dataType = "Long", required = true)
    private Long goodsId;

    /**
     * SkuID
     */
    @ApiModelProperty(value = "SkuID", dataType = "Long", required = false)
    private Long skuId;

    /**
     * 购物车产品个数
     */
    @NotNull(message = "购物车产品个数不能为空")
    @ApiModelProperty(value = "购物车产品个数", dataType = "Integer", required = true)
    private Integer basketCount;


}
